<template>
	<view>
		<swiper :indicator-dots="true" :autoplay="true" :interval="3000" :duration="1000" :circular="true">
			<swiper-item v-for="(item,index) in curList" :key="index">
				<!-- <view class="swiper-item">{{item}}</view> -->
				<image style="width: 100%; height: 100%;" :src="item.imgUrl" mode=""
					@click="lunbotuClick(item,index)"></image>
			</swiper-item>
		</swiper>
	</view>
</template>

<script>
	export default {
		name: "gz-lunbotu",
		props:{
			curList:{
				type:Array,
				default:[]
			}
		},
		mounted() {
			
		},
		methods: {
			lunbotuClick(item, index) {
				if (item.contentType == 'FUWENBEN') {
					uni.$common.navTo("/subpkg/commons/web-show/web-show", {
						type: "HTML",
						title: item.name,
						content: encodeURIComponent(item.content)
					})
				}else if (item.contentType == 'PAGE') {
					uni.$common.navTo(item.content)
				}else if (item.contentType == 'URL') {
					uni.$common.navTo("/subpkg/commons/web-show/web-show", {
						type: "URL",
						title: item.name,
						content: encodeURIComponent(item.content)
					})
				}
			}
		}
	}
</script>

<style>

</style>
